//
//  WillBeShownDataViewController.m
//  代号：47
//
//  Created by lanou3g on 15/7/1.
//  Copyright (c) 2015年 杨佩璋. All rights reserved.
//

#import "WillBeShownDataViewController.h"

@interface WillBeShownDataViewController ()
@property(nonatomic,retain)UIWebView *webView;
@end

@implementation WillBeShownDataViewController



- (void)dealloc
{
    [_webView release];
    [super dealloc];
}
- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    self.view.backgroundColor = [UIColor whiteColor];
    [self createWebView];
    
}
#pragma mark------------------创建webView--------------------
-(void)createWebView{

    self.webView = [[[UIWebView alloc] initWithFrame:CGRectMake(0, 0, kScreen_width, kScreen_height)] autorelease];
    NSURL *url = [NSURL URLWithString:[NSString stringWithFormat:@"http://movie.douban.com/subject/%@/mobile",_str]];
    [_webView loadRequest:[NSURLRequest requestWithURL:url]];
    [self.view addSubview:_webView];

    
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end